package com.seveneight.baijiesteward.views;

import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;

import com.seveneight.baijiesteward.base.BaseActivity;
import com.seveneight.baijiesteward.utils.MDialog;

/**
 * Created by yemao on 2017/3/23.
 */

public class ProgressDialog {
    private static MDialog mDialog;

    public static void show(Context cxt, String str) {
        if (mDialog == null) {
            mDialog = new MDialog(cxt, str);
        }
        mDialog.showLoadingDialog();
    }

    public static void cancle() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                mDialog.hideDialog();
            }
        }, 500);
    }

}
